#include "../H/CameraLights.h"

//------------------------------------------------------------------------------
// METHOD:  CameraLights::CameraLights()
// Type:	Constructor
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
CameraLights::CameraLights(UINT32 channel)
{
	SmartDashboard::init();

	pCameraLights = new Relay(channel,Relay::kForwardOnly);

	TurnOff();
}
//------------------------------------------------------------------------------
// METHOD:  CameraLights::CameraLights()
// Type:	Constructor
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
CameraLights::CameraLights(UINT32 moduleNumber, UINT32 channel)
{
	SmartDashboard::init();

	pCameraLights = new Relay(moduleNumber,channel,Relay::kForwardOnly);

	TurnOff();
}
//------------------------------------------------------------------------------
// METHOD:  CameraLights::~CameraLights()
// Type:	Destructor
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
CameraLights::~CameraLights()
{
	// Does nothing
}
//------------------------------------------------------------------------------
// METHOD:  CameraLights::TurnOn()
// Type:	Method
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void  CameraLights::TurnOn()
{
	pCameraLights->Set(Relay::kOn);

	lightStatus = kOn;

	SmartDashboard::PutBoolean("Light Status", lightStatus);

	return;
}
//------------------------------------------------------------------------------
// METHOD:  CameraLights::TurnOff()
// Type:	Constructor
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void  CameraLights::TurnOff()
{
	pCameraLights->Set(Relay::kOff);

	lightStatus = kOff;

	SmartDashboard::PutBoolean("Light Status", lightStatus);

	return;
}
//------------------------------------------------------------------------------
// METHOD:  CameraLights::GetStatus()
// Type:	Constructor
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
bool  CameraLights::GetStatus()
{
	return lightStatus;
}
